home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global mnv, ppl, foes, advance, pwr, fxpath
- if getAt(mnv, 1) > 1 then
- if (the keyCode > 124) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if the keyCode = 126 then
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) - 17
- else
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if (the keyCode > 122) and (the memberNum of sprite getAt(ppl, 1) < 46) then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if sprite(getAt(ppl, 1)).flipH = 1 then
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) - 17
- else
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if getAt(mnv, 1) < 20 then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- setAt(mnv, 1, 1)
- end if
- end if
- end if
- else
- if the memberNum of sprite getAt(ppl, 1) < 82 then
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- end if
- end if
- if sprite 5 within getAt(ppl, 1) and (sprite(5).visible = 1) then
- sprite(5).visible = 0
- setAt(pwr, 1, getAt(pwr, 1) + 10)
- sound playFile 1, fxpath & "heart.aif"
- end if
- if (advance = 6) or (advance = 7) then
- foemov(162, 163, 175, 180, 181, 16, 7, 2, 2, 1, 11, 6)
- foemov(162, 163, 175, 180, 181, 8, 3, 3, 3, 2, 11, 6)
- strata2(3)
- else
- strata2(3)
- end if
- end
-